import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import indexItem from '../views/index/index.vue'
import About from '../views/about/aboutus.vue'
import news from '../views/news/news.vue'
import recruit from '../views/recruit/recruit.vue'
import bottom from '../views/bottom/bottom.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },
  {
    path: '../views/index/index.vue',
    name: 'indexItem',
    component: indexItem
  },
  {
    path: '../views/about/aboutus.vue',
    name: 'About',
    component: About
  },
  {
    path: '../views/news/news.vue',
    name: 'news',
    component: news
  },
  {
    path: '../views/recruit/recruit.vue',
    name: 'recruit',
    component: recruit
  },
  {
    path: '../views/bottom/bottom.vue',
    name: 'bottom',
    component: bottom
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
